home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / EMULATOR / GBDK_BIN / !GBDK / lib / h / stdarg < prev    next >
Text File  |  1996-02-26  |  424b  |  18 lines

  1. #ifndef __STDARG
  2. #define __STDARG
  3.  
  4. #if !defined(_VA_LIST)
  5. #define _VA_LIST
  6. typedef char *__va_list;
  7. #endif
  8. typedef __va_list va_list;
  9.  
  10. #define va_start(list, start) \
  11.     ((void)((list) = (char *)&start + sizeof(start)))
  12. #define __va_arg(list, mode, n) \
  13.         *(mode *)(&(list += ((sizeof(mode)+n)&~n))[-(int)((sizeof(mode)+n)&~n)])
  14. #define va_end(list) ((void)0)
  15. #define va_arg(list, mode) __va_arg(list, mode, 1U)
  16.  
  17. #endif
  18.